using UnityEngine;

[RequireComponent(typeof(PointTrigger_Character))]
public class DeadArea : MonoBehaviour
{
    private PointTrigger_Character trigger;

    private void Awake()
    {
        trigger = GetComponent<PointTrigger_Character>();
        trigger.OnTriggerEnter += MyOnTriggerEnter;
    }

    private void MyOnTriggerEnter(Character character)
    {
        character.b_died = true;
    }
}
